package com.qiguliuxing.dts.admin.dao;

import java.util.ArrayList;

public class IorderSplit {

    private double volume;//分装量
    private Integer count;//件数
    private String deliveryType;//发货方式
    private String packingType;//包装规格

    public boolean hasSameVolume(IorderSplit other) {
        return this.volume == other.volume;
    }

    public int getCountTotal(ArrayList<IorderSplit> iorderSplits){
          return iorderSplits.stream().mapToInt(IorderSplit::getCount).sum();
    }

    public String getPackingType() {
        return packingType;
    }

    public void setPackingType(String packingType) {
        this.packingType = packingType;
    }

    public double getVolume() {
        return volume;
    }

    public void setVolume(double volume) {
        this.volume = volume;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getDeliveryType() {
        return deliveryType;
    }

    public void setDeliveryType(String deliveryType) {
        this.deliveryType = deliveryType;
    }
}
